package com.kandinfo.survey.common.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.kandinfo.base.admin.domain.BaseDomain;

/**
 * Description : 题目选项domain
 * 
 * @author Patrick-chenziping-TG
 * @version 1.0
 */
@Entity
@Table(name = "question_option")
public class QuestionOption extends BaseDomain implements Serializable {

    private static final long serialVersionUID = 1L;

    @Column(name = "question_id")
    private Long questionId; // 题目ID

    @Column(name = "option_desc")
    private String optionDesc; // 选项信息

    @Column(name = "type")
    private String type; // 0 纯选择，1选择加填空

    @Column(name = "need_alarm")
    private Integer needAlarm; // 0不需要告警，1需要告警

    @Column(name = "seq_no")
    private Integer seq_no; // 排序序号

    @Column(name = "value")
    private Integer value; // 对应的数值，用于曲线图

    @Column(name = "status")
    private String status; // 逻辑删除：0 正常使用：1

    public Long getQuestionId() {
        return questionId;
    }

    public void setQuestionId(Long questionId) {
        this.questionId = questionId;
    }

    public String getOptionDesc() {
        return optionDesc;
    }

    public void setOptionDesc(String optionDesc) {
        this.optionDesc = optionDesc;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getNeedAlarm() {
        return needAlarm;
    }

    public void setNeedAlarm(Integer needAlarm) {
        this.needAlarm = needAlarm;
    }

    public Integer getSeq_no() {
        return seq_no;
    }

    public void setSeq_no(Integer seq_no) {
        this.seq_no = seq_no;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public QuestionOption() {
        super();
    }

    public QuestionOption(Long questionId, String optionDesc, String type, Integer needAlarm, Integer seq_no, Integer value,
            String status) {
        super();
        this.questionId = questionId;
        this.optionDesc = optionDesc;
        this.type = type;
        this.needAlarm = needAlarm;
        this.seq_no = seq_no;
        this.value = value;
        this.status = status;
    }

}
